from gpiozero import Button
from signal import pause

def say_hello():
    print("Hello!")

button = Button(3)
button2 = Button(4)
print(button)
button.when_pressed = say_hello
button2.when_pressed = say_hello

pause()